<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page import="cn.huiyunche.bms.backend.bo.OrderBO" %>
<%@ page import="java.util.List" %>
<%@ page import="cn.huiyunche.bms.backend.bo.VehicleBO" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    String path = request.getContextPath();
    OrderBO bo = (OrderBO) request.getAttribute("order");
    List<VehicleBO> vehicleBOS = bo.getVehicleList();
%>
<html>
<head>
    <link rel="stylesheet" href="<%=path%>/plugins/weui/weui.css">
    <link rel="stylesheet" href="<%=path%>/plugins/bootstrap/bootstrap.min.css">
</head>
<body>
    <div class="container-fluid">
        <div class="weui_cells" style="margin-top: 0px">
            <div class="weui_cells_title">
                基础信息
            </div>
            <div class="weui_cell weui_cell_primary">
                <div class="weui_cell_hd">
                    订单号：
                </div>
                <div class="weui_cell_bd">
                    <%=bo.getOrderCode()%>
                </div>
            </div>
            <div class="weui_cell weui_cell_primary">
                <div class="weui_cell_hd">
                    启运地：
                </div>
                <div class="weui_cell_bd">
                    <%=bo.getDepartAddr()%>
                </div>
            </div>
            <div class="weui_cell weui_cell_primary">
                <div class="weui_cell_hd">
                    目的地：
                </div>
                <div class="weui_cell_bd">
                    <%=bo.getDestAddr()%>
                </div>
            </div>
            <div class="weui_cell weui_cell_primary">
                <div class="weui_cell_hd">
                    下单人：
                </div>
                <div class="weui_cell_bd">
                    <%=bo.getCustomName()%>
                </div>
            </div>
            <div class="weui_cell weui_cell_primary">
                <div class="weui_cell_hd">
                    提车时间：
                </div>
                <div class="weui_cell_bd">
                    <%=bo.getPickTime()%>
                </div>
            </div>
            <div class="weui_cell weui_cell_primary">
                <div class="weui_cell_hd">
                    提车联系人：
                </div>
                <div class="weui_cell_bd">
                    <%=bo.getDepartContactName()%>
                </div>
            </div>
            <div class="weui_cell weui_cell_primary">
                <div class="weui_cell_hd">
                    提车联系电话：
                </div>
                <div class="weui_cell_bd">
                    <%=bo.getDepartContactPhone()%>
                </div>
            </div>
            <div class="weui_cell weui_cell_primary">
                <div class="weui_cell_hd">
                    交车联系人：
                </div>
                <div class="weui_cell_bd">
                    <%=bo.getDestContactName()%>
                </div>
            </div>
            <div class="weui_cell weui_cell_primary">
                <div class="weui_cell_hd">
                    交车联系电话：
                </div>
                <div class="weui_cell_bd">
                    <%=bo.getDestContactPhone()%>
                </div>
            </div>
        </div>
        <div class="weui_cells" style="margin-top: 0px">
            <div class="weui_cells_title">
                车辆信息
            </div>
            <c:forEach var="vehicle" items="<%=vehicleBOS%>">
                <div class="weui_cell weui_cell_primary">
                    <div class="weui_cell_hd">
                        车架号：
                    </div>
                    <div class="weui_cell_bd">
                        ${vehicle.vin}
                    </div>
                </div>
                <div class="weui_cell weui_cell_primary">
                    <div class="weui_cell_hd">
                        品牌名称：
                    </div>
                    <div class="weui_cell_bd">
                        ${vehicle.brandName}
                    </div>
                </div>
                <div class="weui_cell weui_cell_primary">
                    <div class="weui_cell_hd">
                        车系名称：
                    </div>
                    <div class="weui_cell_bd">
                        ${vehicle.className}
                    </div>
                </div>
            </c:forEach>
        </div>
    </div>
</body>
</html>
